package wsz.service;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;
import wsz.AsyncService;

import java.util.concurrent.CompletableFuture;

/**
 * TODO：
 *
 * @author wsz
 * @desc：
 * @date 2021/12/13
 */
@Component
public class AsyncComponent {

    @Reference
    AsyncService asyncService;

    public CompletableFuture<String> sayHello(String msg, int wait) throws Exception {
        return asyncService.sayHello(msg, wait);
    }
}
